package com.zzc.service;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.zzc.bean.DiningReceipt;
import com.zzc.bean.DiningReceipt_sum;
import com.zzc.bean.Employee;
import com.zzc.dao.DiningDao;
import com.zzc.dao.DiningReceiptDao;
import com.zzc.dao.DiningReceipt_sumDao;
import com.zzc.dao.EmployeeDao;
import org.apache.commons.lang3.time.DateUtils;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.UnsupportedEncodingException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class DiningReceipt_sumService {
	private DiningReceipt_sumDao diningReceipt_sumDao;
	public void setDiningReceipt_sumDao(DiningReceipt_sumDao diningReceipt_sumDao) {
		this.diningReceipt_sumDao = diningReceipt_sumDao;
	}
	public List<?> getDiningReceipt_sum_list() {
		HttpServletRequest request = ServletActionContext.getRequest();
		String string_timeStamp_filter=request.getParameter("timeStamp_filter");
		return diningReceipt_sumDao.getDiningReceipt_sum_list(string_timeStamp_filter);
	}
	public List<?> getDiningReceipt_sum_list_nodining_company() {
		HttpServletRequest request = ServletActionContext.getRequest();
		String string_timeStamp_filter=request.getParameter("timeStamp_filter");
		return diningReceipt_sumDao.getDiningReceipt_sum_list_nodining_company(string_timeStamp_filter);
	}
	public List<?> getDiningReceipt_sum_list_employee_account(String employee_account) {
		return diningReceipt_sumDao.getDiningReceipt_sum_list_employee_account(employee_account);
	}

	public List getDiningReceipt_sum_list_employee_account_nodining_company(String employee_account) {
		return diningReceipt_sumDao.getDiningReceipt_sum_list_employee_account_nodining_company(employee_account);
	}
}
